<?php
class Product extends Node_content {
    public function init() {
        $this->set_node_type('product');
    }
    
    public function edit_content($node_id) {
        $data = $_POST;
        return $this->model('product')->edit_content($node_id, $data);
    }
    
    public function get_content($node_id) {
        return $this->model('product')->get_content($node_id);
    }
    
    public function remove_content($node_id) {
        return $this->model('product')->remvoe_content($node_id);
    }
    
    public function block_display_content($node_id) {
        return $this->view('node/product_display', $this->get_content($node_id));
    }
}
?>